package com.laboratory.string;

public class VarTransferTest {
	static String str = "aa";
	public static void main(String[] args) {
		int i=1;
		StringBuffer stringBuffer=new StringBuffer("AB");
		User user=new User(11, "zhangsan", "11");
		change(str, i, stringBuffer, user);
		System.out.println("String:"+str);
		str="cc";
		System.out.println("string=="+str);
		System.out.println("int:"+i);
		System.out.println("StringBuffer:"+stringBuffer);
		System.out.println("User:"+user.toString());
		System.out.print(getCount(0));
	}
	public static void change(String str, int i, StringBuffer stringBuffer,User user){
		str="BB";
		//i=2;
		++i;//
		//stringBuffer=new StringBuffer("BB");
		stringBuffer.append("CC");
		//user=new User(12, "lisi", "22");
		user.setUserId(user.getUserId()+1);
		user.setUserName(user.getUserName()+"--");;
	}
	public void change2(String str){
		System.out.println("ss");
	}
	public Integer change2(String str,Integer in){
		System.out.println("ss");
		return null;
	}
	public static Integer getCount(int n){
		if( 0 == n){
			return 1;
		}else{
			return n * getCount(n-1);
		}
	}

	public void change2(String str1, int str2){
		System.out.println("str1 = " + str1);
	}
	
}
